-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow importing SamplerV1 and EstimatorV1 (Cherry-pick of #1477) #1478
Conversation
Right now, users can't import `qiskit_ibm_runtime.SamplerV1` and `qiskit_ibm_runtime.EstimatorV1` because we only expose the aliases `Sampler` and `Estimator`. That gets in the way of users being explicit about which primitive version they're using. This also is resulting in the API docs not including the pages for both the V1 and V2 primitives in Qiskit/documentation#973 because we didn't tell autosummary about them.
Pull Request Test Coverage Report for Build 8175464133Details
💛 - Coveralls |
Isn't this a duplicate of #1477? |
Oops, I forgot to change the branch. Fixed. Thanks! |
I think this needs to go into 0.21.1 instead of just cherry picked into |
@jyu00 we need to cherry-pick to stable/0.21, then you/Kevin will need to make a 0.21.1 release from the stable/0.21 branch after. We can't cherry-pick a PR into a tag since a tag is a single snapshot in time. |
Yes you're right. Sorry it's been too long since I did a patch (or any) release. |
All good! @jyu00 can you please approve this so we can merge? |
Thanks @Eric-Arellano! I'll do a patch release today |
Right now, users can't import
qiskit_ibm_runtime.SamplerV1
andqiskit_ibm_runtime.EstimatorV1
because we only expose the aliasesSampler
andEstimator
. That gets in the way of users being explicit about which primitive version they're using.This also is resulting in the API docs not including the pages for both the V1 and V2 primitives in Qiskit/documentation#973 because we didn't tell autosummary about them.